package com.qw.fmmall.dao;

import com.qw.fmmall.entity.ProductComments;
import com.qw.fmmall.entity.ProductCommentsVO;
import com.qw.fmmall.general.GeneralDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductCommentsMapper extends GeneralDao<ProductComments> {

    /**
     * 根据商品id分页查询评论信息
     * @param productId 商品id
     * @param start 起始索引
     * @param limit
     * @return
     */
    public List<ProductCommentsVO> selectCommontsByProductId(@Param("productId") String productId,@Param("start") int start,@Param("limit")int limit);
}